<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<table align="center"><tr ><td><font size="5" color="#007979">电话客服中心</font></td></tr></table>
<hr>
<table align="center">
	<tr align="left"><td><form name="form1" method="post" action="jumptowaiter.do?method=showShops">
  <input type="submit" name="button" id="button" value="按订单量排序">
</form></td>
<td><form name="form1" method="post" action="jumptowaiter.do?method=findShop">
<input name="name" type="text" id="textfield" size="10" value="输入商家名称">
<input type="submit" name="button" id="button" value="搜索"></form></td></tr>
</table>
<table align="center">
	<TR bgcolor="#9D9D9D">
		<TD>名称</TD>
		<TD>地址</TD>
		<TD>菜系</TD>
		<TD>电话</TD>
		<TD>营业时间</TD>
	</TR>
	<logic:present name="shopsList">
	<logic:iterate id="shop" name="shopsList" scope="session">
	<TR>
		<TD><a href="jumptowaiter.do?method=showPersonShops&shop_name=<bean:write name="shop" property="name" scope="page"/>">
		<bean:write name="shop" property="name" scope="page"/></a></TD>
		<TD><bean:write name="shop" property="address" scope="page"/></TD>
		<TD><bean:write name="shop" property="cuisine" scope="page"/></TD>
		<TD><bean:write name="shop" property="telephone" scope="page"/></TD>
		<TD><bean:write name="shop" property="shopHours" scope="page"/></TD>
		<TD></TD>
	</TR>
	</logic:iterate>
	</logic:present>
	</table>
</body>
</html>